import React from 'react';
import { WebView } from 'react-native';

// 这个文件需要调用 node ./genehtmljs.js 生成
import htmlJS from './html/index.html.js'

class WxGameDemo extends React.Component {
    render() {
        return (
            <WebView
                mediaPlaybackRequiresUserAction={false}
                automaticallyAdjustContentInsets={false}
                style={{flex: 1}}
                source={{html: htmlJS}}
                javaScriptEnabled={true}
                domStorageEnabled={true}
                decelerationRate="normal"
            />
        );
    }
}

module.exports = WxGameDemo;